package edu.gdkm.demo4;

import java.util.Scanner;

public class StudentMain {
    public static void main(String[] args) {
        Student student=new Student();

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生的学号：");
        student.setStudentId(sc.next());
        System.out.println("请输入学生的姓名：");
        student.setName(sc.next());
        System.out.println("请输入学生的C语言的成绩：");
        student.setcScore(sc.nextDouble());
        System.out.println("请输入学生的计算机应用基础的成绩：");
        student.setComputerScore(sc.nextDouble());
        System.out.println("请输入学生的英语的成绩：");
        student.setEnglishScore(sc.nextDouble());
        System.out.println("c语言的分数："+student.getcScore());
        student.print();
        System.out.println(student.average());


    }
}
